<?php
namespace Admin\Model;
use Think\Model\ViewModel;

class CodeViewModel extends ViewModel {
    public $viewFields = array(     
    	'code'=>array('id','goods_id','depot_id','supplier_id','price','code','status','del'), 
    	'goods'=>array('id'=>'goods_id','name'=>'goods_name','xinghao','unit','guige','_on'=>'code.goods_id=goods.id'),
    	'depot'=>array('id'=>'depot_id','name'=>'depot_name','_on'=>'code.depot_id=depot.id'), 
    	'supplier'=>array('id'=>'supplier_id','name'=>'supplier_name', '_on'=>'code.supplier_id=supplier.id')
	); 
}